package com.ssy.lingxi.search.service;

import com.ssy.lingxi.common.constant.tree.Node;
import com.ssy.lingxi.search.api.model.request.SelectSearchRequest;
import com.ssy.lingxi.search.api.model.response.AttributeResponse;
import com.ssy.lingxi.search.api.model.response.BrandResponse;

import java.util.List;

/**
 * 商城搜索管理类
 * @author jw.chen
 * @version 2.0.0
 * @date 2020/7/28
 */
public interface IShopService {

    /**
     * 查询商品品类树
     * @return
     */
    List<Node> getCategoryTree(Integer type, Integer environment, SelectSearchRequest selectSearchRequest);

    /**
     * 查询属性
     * @return
     */
    List<AttributeResponse> getAttributeByCategoryId(Integer type, Integer environment, SelectSearchRequest selectSearchRequest);

    /**
     * 查询商品品牌
     * @return
     */
    List<BrandResponse> getBrand(Integer type, Integer environment, SelectSearchRequest selectSearchRequest);

}
